﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using Peak.Core;

namespace Peak.Web.Controllers.Models
{
  public class StoryModelValidator : AbstractValidator<StoryModel>
  {
    public StoryModelValidator()
    {
      RuleFor(f => f.Name).NotNull().NotEmpty();
      RuleFor(f => f.StoryPoints).GreaterThanOrEqualTo(0);      
    }
  }
}
